from django.db.models.deletion import CASCADE
from django.db import models
from ability.models import UserProfile

# Create your models here.
class WebEnvents(models.Model):
  ext_pk = models.IntegerField(default=0)
  event = models.SmallIntegerField()
  data = models.CharField(max_length=2048)
  user = models.ForeignKey(UserProfile, on_delete=CASCADE)
  create_ts = models.DateTimeField(auto_now=True)